﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TmallClient.Controls
{
    public partial class ThumbView : UserControl
    {


        public ThumbView()
        {
            InitializeComponent();
        }

        public string ImageUrl
        {
            get
            {
                return pictureBox1.ImageLocation;
            }

            set
            {
                pictureBox1.ImageLocation = value;
            }
        }

        public string Price
        {
            get
            {
                return lblPrice.Text;
            }

            set
            {
                lblPrice.Text = value;
            }
        }

        public string BrandName
        {
            get
            {
                return lblBrandName.Text;
            }

            set
            {
                lblBrandName.Text = value;
            }
        }

        public string DetailUrl
        {
            get;
            set;
        }

        public string Title
        {
            get
            {
                return lblTitle.Text;
            }

            set
            {
                lblTitle.Text = value;
            }
        }

        private void splitContainer1_Click(object sender, EventArgs e)
        {
            
        }

        private void button2_Click(object sender, EventArgs e)
        {
            FrmDetail frmDetail = new FrmDetail(DetailUrl);
            frmDetail.Show();
        }

       
    }
}
